package com.example.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: demo
 * @author: JCM
 * @create: 2023-02-26 12:13
 * @description:
 **/
@Controller
@RequestMapping("/art")
@ResponseBody
@Slf4j
public class ArticleController {
    @RequestMapping("/hi")
    public String sayHi() {
        log.trace("我是 slf4j 的trace");
        log.debug("我是 slf4j 的debug");
        log.info("我是 slf4j 的info");
        log.warn("我是 slf4j 的warn");
        log.error("我是 slf4j 的error");
        return "hi,article";
    }
}
